from flask import Blueprint
from . import view

scoring_blueprint = Blueprint('scoring_blueprint', __name__)

# 创建/提交评分标准
scoring_blueprint.add_url_rule(rule="/add", methods=['POST'], view_func=view.addScoringResult)

# 删除评分标准
scoring_blueprint.add_url_rule(rule="/delete", methods=['get'], view_func=view.deleteScoringResult)

# 编辑评分标准
scoring_blueprint.add_url_rule(rule="/update", methods=['post'], view_func=view.updateScoringResult)

# 获取评分标准
scoring_blueprint.add_url_rule(rule="/get", methods=['get'], view_func=view.getScoringResult)

# 分页获取评分标准
scoring_blueprint.add_url_rule(rule="/list", methods=['post'], view_func=view.listScoringResultByPage)
scoring_blueprint.add_url_rule(rule="/list/my", methods=['post'], view_func=view.listScoringResultByPage)

# 恢复评分
scoring_blueprint.add_url_rule(rule="/recover", methods=['get'], view_func=view.recoverScoringResult)
